package redis;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 缓存失效
 *
 * @author zhanglinfeng
 * @date create in 2022/8/31 11:17
 */
@Documented
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface RedisExpire {
    /** 缓存key */
    String cacheKey();

    /** 参数索引 */
    int[] cacheIndex() default {-1};

}